package com.lhn.spring5.collectiontype;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 〈一句话功能简述>
 * 〈学生测试类〉
 *
 * @Author 17505
 * @Create 2021/12/26
 * @Since 1.0.0
 */
public class Stu {

    private String[] courses;

    private List <String> list;

    private Map <String, String> maps;

    private Set <String> sets;

    public List <Course> courseList;

    public void setCourses(String[] courses) {
        this.courses = courses;
    }

    public void setList(List <String> list) {
        this.list = list;
    }

    public void setMaps(Map <String, String> maps) {
        this.maps = maps;
    }

    public void setSets(Set <String> sets) {
        this.sets = sets;
    }

    public void setCourseList(List <Course> courseList) {
        this.courseList = courseList;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Stu{");
        sb.append("courses=").append(courses == null ? "null" : Arrays.asList(courses).toString());
        sb.append(", list=").append(list);
        sb.append(", maps=").append(maps);
        sb.append(", sets=").append(sets);
        sb.append(", courseList=").append(courseList);
        sb.append('}');
        return sb.toString();
    }
}